<template>
  <section class="social-proof">
    <div class="container">
      <div class="section-header">
        <h2>用户真实反馈</h2>
        <p>听听我们的用户怎么说</p>
      </div>
      
      <div class="testimonials-grid">
        <div class="testimonial-card">
          <div class="testimonial-content">
            <div class="quote-icon">
              <i class="fas fa-quote-left"></i>
            </div>
            <p class="testimonial-text">
              "通过智索真源平台，我们找到了3名优秀的AI算法开发人才，项目提前完成，成本降低了40%。平台的智能匹配真的很精准！"
            </p>
            <div class="testimonial-author">
              <div class="author-info">
                <h4>张总</h4>
                <span>某科技公司CTO</span>
              </div>
              <div class="rating">
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
              </div>
            </div>
          </div>
        </div>
        
        <div class="testimonial-card">
          <div class="testimonial-content">
            <div class="quote-icon">
              <i class="fas fa-quote-left"></i>
            </div>
            <p class="testimonial-text">
              "作为大学生，我在平台上完成了5个真实项目，获得了能力认证，毕业后直接进入了心仪的公司。这比任何实习都有价值！"
            </p>
            <div class="testimonial-author">
              <div class="author-info">
                <h4>李同学</h4>
                <span>计算机科学与技术专业</span>
              </div>
              <div class="rating">
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
              </div>
            </div>
          </div>
        </div>
        
        <div class="testimonial-card">
          <div class="testimonial-content">
            <div class="quote-icon">
              <i class="fas fa-quote-left"></i>
            </div>
            <p class="testimonial-text">
              "技术股模式真的很创新！我们通过股权激励吸引到了顶尖设计师，产品创新度提升了60%。这种合作模式值得推广。"
            </p>
            <div class="testimonial-author">
              <div class="author-info">
                <h4>王总</h4>
                <span>某制造企业CEO</span>
              </div>
              <div class="rating">
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
                <i class="fas fa-star"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'SocialProof'
}
</script>

<style scoped>
.social-proof {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(139, 92, 246, 0.05) 100%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.quote-icon {
  color: #3b82f6;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.3rem;
}

.author-info span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.rating {
  display: flex;
  gap: 0.2rem;
}

.rating i {
  color: #fbbf24;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .testimonials-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    max-width: 100%;
    min-width: auto;
    flex: none;
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
</style>

